// 对axios做集中封装：baseURL、headers配置
import axios from "axios";
import { BASE, ID, KEY } from "../config/index.js";

// axios 分身
const instance = axios.create({
  baseURL:BASE+'/1.1',
  headers:{
    "X-LC-Id":ID,
    "X-LC-Key":KEY,
    "content-type":"application/json"
  }
})

export default instance